//
//
//
#ifndef __ROCKETPORTOCOLMYGIFTLIST_H
#define __ROCKETPORTOCOLMYGIFTLIST_H

#include "RocketRequest.h"
#include "RocketResponse.h"
#include "RocketCommon.h"

class CRocketRequestMyGiftList : public CRocketRequest
{
public:
	CRocketRequestMyGiftList(MNetworkEventObervser* aObserver);
	~CRocketRequestMyGiftList();
	
	TBool	Encode();
	void 	SetInfo(const TDesC8& aUid, const TDesC8& aRand, TInt aSource, TInt aIndex,
					TInt aRobotGiftID, TInt aRobotMsgIndex,TInt aRobotNO);
	
private:
	TBuf8<20>	iUid;
	TBuf8<20>	iRand;
	TInt	iSource;
	TInt	iIndex;
	TBuf8<256>	iRobotInfo;
};

class CRocketResponseMyGiftList : public CRocketResponse
{
public:
	CRocketResponseMyGiftList();
	~CRocketResponseMyGiftList();
	
public:
	void OnStartElementL(const Xml::RTagInfo& aElement,
								const Xml::RAttributeArray& aAttributes,
								TInt aErrorCode);
	
	void OnEndElementL(const Xml::RTagInfo &aElement, 
										TInt aErrorCode);	
};

#endif
